/*
 * user.cpp
 *
 *  Created on: 2010-1-28
 *      Author: gavinweng
 */
#include "user.h"

UserProperty::UserProperty(int x, int y,
						  double dayTrafficDemand, double nightTrafficDemand,
			              double power)
:x(x),y(y),
 dayTrafficDemand(dayTrafficDemand), nightTrafficDemand(nightTrafficDemand),
 power(power),cover(false), channel(-1)
{
}

UserProperty::UserProperty(const UserProperty &u)
{
	x = u.x;
	y = u.y;
	dayTrafficDemand = u.dayTrafficDemand;
	nightTrafficDemand = u.nightTrafficDemand;
	power = u.power;
	cover = u.cover;
	channel = u.channel;
}
